<?php
	require_once(dirname(__FILE__)."/../include/admin/award_data.php");	
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh" xml:lang="zh">
<head>
	<title>队员最高奖设置</title>
	<style>
	td{padding: 5px 10px 5px 10px; text-align:center;}
	th{padding: 5px 10px 5px 10px; text-align:center;}
	</style>
</head>
<body>
	<h1>集训队队员的最高奖项设置</h1>
	<div style="width:80%">
	<form action="#" method="post">
		<span style="font-weight:bold">关键字：</span>
		<input type="text" name="keyword" value="<?php echo $keyword; ?>" />
		<input type="submit" name="query" value="查询" />
		<span style="color:red">[查询采用模糊匹配，匹配对象有：用户名， 别名， 学号]</span>
	</form>
	<br />
	<hr />
	<p style="font-weight:bold">查询结果：</p>
	<table border="1" cellspacing="0" cellpadding="0">
		<tr> 
			<th>用户名</th>
			<th>昵称</th>
			<th>学号</th>
			<th>奖项</th>
			<th>操作</th>
		</tr>
<?php
	foreach($PageArray["acmerlist"] as $Object){	
?>
		<tr>
			<form action="#" method="post" >
				<input type="hidden" name="keyword" value="<?php echo $keyword; ?>" />
				<input type="hidden" name="username" value="<?php echo $Object->username; ?>" />
				<td>
					<?php echo $Object->username; ?></td>
				<td>
					<?php echo $Object->nickname; ?></td>
				<td>
					<?php echo $Object->studentnum; ?></td>
				<td>
					<input type="text" name="award" value="<?php echo $Object->award; ?>" /></td>
				<td>
					<input type="submit" name="update" value="更新" />
					<input type="submit" name="delete" value="删除" />
				</td>
			</form>
		</tr>
		<?php } ?>
	</table>
	</div>
</body>
</html>